package com.wobito.pojo.vo.user;

import com.wobito.pojo.validator.isMobile;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;

/**
 * @Author Wangbaba
 * @Date 2024/9/2 16:29
 * @Version 1.0
 */
@Data
@ApiModel(value = "修改用户入参")
public class UpdateUserVO {

    @ApiModelProperty(value = "用户ID",required = true)
    private Long id;

    @ApiModelProperty(value = "用户名",required = true)
    @Size(min = 2,max = 10,message = "用户名长度必须在2-10位之间")
    private String username;

    @ApiModelProperty(value = "手机号码",required = true)
    @isMobile
    private String phone;
}
